package org.jeecg.modules.compilation.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(description = "文件查询Web--VO")
public class CiDocQueryWebVO {

    @ApiModelProperty(value = "id")
    private String id;
    @ApiModelProperty(value = "文件编号")
    private String documentSn;
    @ApiModelProperty(value = "文件标题")
    private String documentTitle;
    @ApiModelProperty(value = "发文字号")
    private String documentIdentifier;
    @ApiModelProperty(value = "公文类型编号")
    private String documentTypeSn;
    @ApiModelProperty(value = "公文类型名称")
    private String documentTypeName;
    @ApiModelProperty(value = "业务类型编号")
    private String businessCategorySn;
    @ApiModelProperty(value = "业务类型名称")
    private String businessCategoryName;
    @ApiModelProperty(value = "经办部门id")
    private String departmentId;
    @ApiModelProperty(value = "经办部门名称")
    private String departmentName;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "发布日期")
    private Date publishedDate;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "废止日期")
    private Date abolitionDate;
    @ApiModelProperty(value = "启用状态(0-未启用，1-启用)")
    private String enableFlag;
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    @ApiModelProperty(value = "ES索引名称")
    private String esIndexName;
    @ApiModelProperty(value = "是否是附件")
    private String isAnnex;
    @ApiModelProperty(value = "附件Sns")
    private String parentDocSn;
    @ApiModelProperty(value = "文件下载地址")
    private String downLoadUrl;
    @ApiModelProperty(value = "附件")
    List<AnnexFileVO> annexFiles;
}
